home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97b.txt / 000063_icon-group-sender _Tue Sep 16 08:00:29 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id IAA07330
  4.     for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Tue, 16 Sep 1997 08:00:28 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA00552; Tue, 16 Sep 1997 08:00:22 -0700
  7. To: icon-group@cs.arizona.edu
  8. Date: Tue, 16 Sep 1997 22:15:29 +1000
  9. From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
  10. Message-Id: <Stuart.Robinson-1609972215290001@asianstmg-221.anu.edu.au>
  11. Organization: ANU
  12. Sender: icon-group-request@cs.arizona.edu
  13. References: <Stuart.Robinson-1609971341100001@asianstmg-221.anu.edu.au>, <5vlnlo$juv$1@vishnu.jussieu.fr>
  14. Subject: Re: case selection expression
  15. Errors-To: icon-group-errors@cs.arizona.edu
  16. Status: RO
  17.  
  18. Thanks.  I think you're right, Mark.  For this sort of thing, a series of
  19. if-then statements is probably more straightforward than the case
  20. selection expression.  But it's good to know alternative ways of skinning
  21. the proverbial cat.
  22.  
  23. By the way, what is the story with "<-"?  Is it just a variant of ":="?
  24.  
  25. > case (find( i <- "x"|"y"|"z"), i) of
  26. > "x":  do 1
  27. > "y":  do 2
  28. > "z":  do 3
  29. > default: do 4
  30.  
  31. -- 
  32. Stuart Robinson <Stuart.Robinson@no_spam!anu.edu.au>
  33. The Australian National University
  34. *TO REPLY, REMOVE "no_spam!" FROM E-MAIL ADDRESS GIVEN ABOVE
  35.